#include <iostream>
#include <cstring>

using namespace std;
class mystring
{
	char*_buf;
public:
	//mystring();
	//mystring();
	void show();
	void set(const char*buf)
	{
		_buf=(char*)malloc(sizeof(buf));
		strcpy(_buf,buf);
	}
	char * get()const
	{
		return _buf;
	}
};

int main()
{
	mystring temp1;

	temp1.set("nihao");
	cout << temp1.get() << endl;
	return 0;
}
